@lotteryBoxWidth: 95vw;
@wrapCircleBorder: 35rpx;
@containerLotteryBorder: 20rpx;

page {
    background-color: teal;
}

#app {
    width: 100vw;
    box-sizing: border-box;
    padding: 40rpx 0;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);

    .luckyBox {
        width: 100%;
        box-sizing: border-box;
        display: grid;
        grid-gap: 40rpx;

        .container-lottery {
            position: relative;
            width: @lotteryBoxWidth;
            height: @lotteryBoxWidth;
            margin: auto;
            box-sizing: border-box;
            border: @containerLotteryBorder #f6f7d0 solid;
            border-radius: 50%;

            .wrap-circle {
                position: relative;
                width: 100%;
                height: 100%;
                box-sizing: border-box;
                border: @wrapCircleBorder solid #57dcc9;
                border-radius: 50%;

                &::before,
                &::after {
                    content: "";
                    position: absolute;
                    width: 5rpx;
                    height: 5rpx;
                    box-sizing: border-box;
                    border-radius: 50%;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    transform-origin: center;
                }

                .prize-list {
                    width: 100%;
                    height: 100%;
                    box-sizing: border-box;
                    border-radius: 50%;
                    overflow: inherit;
                    position: relative;
                    background-color: #f6f7d0;

                    &::before {
                        content: "";
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        box-sizing: border-box;
                        transform-origin: center center;
                        border-radius: 50%;
                    }

                    .line {
                        width: 0;
                        height: 0;
                        border-left: 2rpx solid transparent;
                        border-right: 2rpx solid transparent;
                        border-top: calc((@lotteryBoxWidth - (@wrapCircleBorder + @containerLotteryBorder)*2) / 2) solid #57dcc9;
                        display: inline-block;
                        position: absolute;
                        top: 0;
                        left: 50%;
                        transform: translateX(-50%) rotate(0deg);
                        transform-origin: bottom center;
                    }

                    .prize-item {
                        position: absolute;
                        left: 0;
                        right: 0;
                        margin: auto;
                        display: flex;
                        box-sizing: border-box;
                        flex-direction: column;
                        align-items: center;
                        justify-content: flex-start;
                        box-sizing: border-box;
                        grid-gap: 5rpx;
                        padding-top: 10rpx;
                        z-index: 6;
                        transform-origin: bottom center;

                        &::after {
                            content: '';
                            width: 15rpx;
                            height: 15rpx;
                            position: absolute;
                            top: -25rpx;
                            left: 50%;
                            transform: translateX(-50%);
                            background-color: #f6f7d0;
                            z-index: 9;
                            border-radius: 200rpx;
                        }

                        .luckyImg {
                            width: 70rpx;
                            height: 70rpx;
                            box-sizing: border-box;
                            display: flex;
                            justify-content: center;
                            align-items: center;

                            .luckyImgs {
                                width: 100%;
                                height: 100%;
                            }
                        }

                        .text {
                            width: 40%;
                            box-sizing: border-box;
                            color: #2eb6aa;
                            font-size: 22rpx;
                            text-align: center;
                            word-break: break-all;
                            // background-color: teal;
                        }
                    }
                }
            }

            .luckybtn {
                width: calc(128rpx * 1.3);
                height: calc(156rpx * 1.3);
                box-sizing: border-box;
                background: url('https://form.gdecexpo.com/images/wechat/luckyBtn.png') no-repeat center / 100% 100%;
                position: absolute;
                left: 0;
                right: 0;
                top: 0;
                bottom: 0;
                margin: auto;
                cursor: pointer;
                user-select: none;
                outline: none;
                z-index: 2;
            }
        }

        .selectBox {
            display: flex;
            grid-gap: 30px;
        }

        .luckyDesc {
            max-width: 800px;
            box-sizing: border-box;
            margin: auto;
            font-size: 24px;
            padding: 0 30px;
        }
    }
}